package com.tuanzi.loan.business.repository.system;

import java.util.List;

import com.tuanzi.loan.business.entity.system.Role;
import com.tuanzi.loan.business.repository.system.custom.RoleRepositoryCustom;
import com.tuanzi.loan.core.repository.JPABaseRepository;

/**
 * @author Ray 2017/09/21
 */
public interface RoleRepository extends RoleRepositoryCustom, JPABaseRepository<Role, String> {

	Role findByCode(String code);

	List<Role> findAllByCodeIn(List<String> codes);
}
